-
Notifications
You must be signed in to change notification settings - Fork 286
Bump clap from 2.34.0 to 3.0.1 #562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Bumps [clap](https://github.com/clap-rs/clap) from 2.34.0 to 3.0.1. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](clap-rs/clap@v2.34.0...clap_complete-v3.0.1) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
- Enabled `cargo` feature to allow usage macros for app metadata - Changed short forms of args from single-char `&str`s to `char`s
Besides replacing the 1:1 deprecated values (these are basically renames), fixes the usage of the deprecated `multiple` arg option, which is split into `multiple_values` (`--option 1 2 3`) and `multiple_occurrences` (`--option 1 --option 2`). ASCII colors,text colors, and disabled fields, take multiple *values*, while exclude and type allow multiple occurrences.
In clap v3
To reiterate, this breaks the existing possible usage of both multiple occurrences and values. For example, |
🤔 Looks like Windows nightly is failing. The failed type inferences don't seem to be related to this PR, but it looks like clap itself is failing to compile on Windows nightly. |
* Switch to multiple_values for type and exclude flags to be in line with tokei * Use default_values fro type flag * Fix nightly by giving type to possible_backends
Wow that's a big upgrade 😮, thanks a lot for addressing this issue - and updating the cli - @spenserblack. I think we should stick to I fixed the nightly by removing the OS specific initialisation for |
Thanks, @o2sh! Yeah, |
Bumps clap from 2.34.0 to 3.0.1.
Release notes
Sourced from clap's releases.
... (truncated)
Changelog
Sourced from clap's changelog.
... (truncated)
Commits
d392b88
chore: Release1a19d48
docs: Update changelog3782d8e
Merge pull request #3247 from epage/len5c829ff
Merge pull request #3246 from epage/warne580683
fix: Don't panic when getting number of values6b9ae54
fix(derive): Don't enit warningsb0cb205
docs(derive): Include name magic attribute06f24b1
Merge pull request #3243 from intgr/fix-clap_complete-documentation-importsf10c5d1
docs(complete): Fix imports in documentation879219a
Merge pull request #3240 from epage/heckDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)